﻿using ScottPlot;

namespace UtilZ.Dotnet.ScottPlotEx
{
    /// <summary>
    /// 对齐选项参数
    /// </summary>
    public class PlotAlignedExtentOptions
    {
        /// <summary>
        /// Width of a single cell from the heatmap (in coordinate units)
        /// </summary>
        public double? CellWidth { get; set; } = null;

        /// <summary>
        /// Height of a single cell from the heatmap (in coordinate units)
        /// </summary>
        public double? CellHeight { get; set; } = null;

        /// <summary>
        /// Indicates position of the data point relative to the rectangle used to represent it.
        /// An alignment of upper right means the rectangle will appear to the lower left of the point itself.
        /// </summary>
        public Alignment CellAlignment { get; set; } = Alignment.MiddleCenter;

        /// <summary>
        /// If defined, the this rectangle sets the axis boundaries of heatmap data.
        /// Note that the actual heatmap area is 1 cell larger than this rectangle.
        /// </summary>
        public CoordinateRect? Position { get; set; } = null;
    }

}
